import request from '@/utils/request'
export function addClass(data) {
    return request({
        url: '/jobAid/classManage',
        method: 'post',
        data: data
    })
}
export function getUsers(data) {
    return request({
        url: '/jobAid/classManage/getUsers',
        method: 'get',
        params: data
    })
}

export function list(query) {
    return request({
        url: '/jobAid/classManage/list',
        method: 'get',
        params: query
    })
}

export function getDeptAndPostByUserId(query) {
    return request({
        url: '/jobAid/classManage/getDeptAndPostByUserId',
        method: 'get',
        params: query
    })
}

export function getInfo(sid) {
    return request({
        url: '/jobAid/classManage/'+sid,
        method: 'get',
    })
}
export function updateClass(data) {
    return request({
        url: '/jobAid/classManage',
        method: 'put',
        data: data
    })
}

export function delClass(sid) {
    return request({
        url: '/jobAid/classManage/' + sid,
        method: 'delete'
    })
}

